package com.woniu.system.pojo;// default package


import com.woniu.components.DAO.IEntity;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;


import javax.persistence.*;


/**
 * SysCompany entity.
 *
 * @author MyEclipse Persistence Tools
 */

@Entity
@org.hibernate.annotations.Entity(dynamicUpdate = true, dynamicInsert = true)
@org.hibernate.annotations.Proxy(lazy = false)
@Table(name = "SYS_COMPANY", schema = "SN_WONIU", uniqueConstraints = {})
@SequenceGenerator(name = "SEQ_GEN", sequenceName = "SN_WONIU.SYS_COMPANY_SQ", allocationSize = 1)
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class SysCompany implements IEntity {

    // Fields

    private Long NId;
    private String SName;
    private String STetl;
    private String SPrincipal;
    private String SDesc;
    private String SState;

    // Constructors

    /**
     * default constructor
     */
    public SysCompany() {
    }

    // Property accessors

    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_GEN")
    @Column(name = "N_ID", unique = true, nullable = false, insertable = true, updatable = true, precision = 22, scale = 0)
    public Long getNId() {
        return this.NId;
    }

    public void setNId(Long NId) {
        this.NId = NId;
    }

    @Column(name = "S_NAME", unique = false, nullable = false, insertable = true, updatable = true, length = 100)
    public String getSName() {
        return this.SName;
    }

    public void setSName(String SName) {
        this.SName = SName;
    }

    @Column(name = "S_TETL", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
    public String getSTetl() {
        return this.STetl;
    }

    public void setSTetl(String STetl) {
        this.STetl = STetl;
    }

    @Column(name = "S_PRINCIPAL", unique = false, nullable = true, insertable = true, updatable = true, length = 15)
    public String getSPrincipal() {
        return this.SPrincipal;
    }

    public void setSPrincipal(String SPrincipal) {
        this.SPrincipal = SPrincipal;
    }

    @Column(name = "S_DESC", unique = false, nullable = true, insertable = true, updatable = true, length = 500)
    public String getSDesc() {
        return this.SDesc;
    }

    public void setSDesc(String SDesc) {
        this.SDesc = SDesc;
    }

    @Column(name = "S_STATE", unique = false, nullable = false, insertable = true, updatable = true, length = 1)
    public String getSState() {
        return this.SState;
    }

    public void setSState(String SState) {
        this.SState = SState;
    }
}